package class2;

public class FixedAccount extends Account{
    public FixedAccount(double mon){
        super(mon);
    }
    @Override
    public double getLixi() {
        return getMoney() * 0.03 *1;
    }
    public void show(){
        System.out.println("利息是："+getLixi());
    }

    public static void main(String[] args) {
        Account acc = new FixedAccount(10000.12);
        acc.show();
    }
}
